Ext.define('cp.view.form.PdfTurnos',{
    extend: 'Ext.form.Panel',
    
    bodyPadding: '5px 5px 5px 5px', 
    bodyStyle: 'border: none',
    fieldDefaults: {
        labelWidth: 65,
        labelAlign: 'top'
    },
    
    initComponent: function(){
       
        
        this.items = [
            { fieldLabel:  'Fecha estimada', name: 'fecha', xtype: 'datefield',
              allowBlank: false, format: 'Y-m-d' },
        ];
        this.callParent(arguments);
    },

    submitForm: function(){
        //this.getForm().standardSubmit = true;
        this.getForm().submit({
            target: '_blank',
            standardSubmit: true,
            url: 'bin/turno/listarTurnosDelDia.php',
            method: 'POST'
        });
    }
});